home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / biz / dbase / Leagues10.lha / Leagues / Install < prev    next >
Text File  |  1996-03-15  |  3KB  |  139 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install_Leagues 1.0 (15.3.96)
  4. ; Install script for Leagues copyright © 1996 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 1)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Leagues!"
  15. ))
  16.  
  17. (set #copying-reqtoools        "\nCopying reqtools.library 38.1296 to LIBS:...")
  18. (set #copying-leagues            "\nCopying Leagues...")
  19. (set #copying-documentation    "\nCopying Leagues documentation...")
  20. (set #copying-regfiles        "\nCopying registration files...")
  21. (set #select-dest            "Please select the path where you want to install Leagues. A drawer named Leagues will be created there.")
  22. (set #select-destguide        "Please select the path where you want to install the Leagues documentation. It has already been installed along with the main program.")
  23. (set #which-language        "\nWhich languages should be installed ?\n")
  24. (set #which-language-help
  25.  (cat "\nThe Amiga can be operated in many different"
  26.       " languages. If you want Leagues to use the"
  27.       " same language as the Amiga Workbench"
  28.       " then a catalog file must be copied to your"
  29.       " harddisk for each language supported.\n\n"
  30.       "To reduce the amount of space consumed by the"
  31.       " language files, you can select to have only the"
  32.       " files of specific languages copied.\n\n"
  33.       "Simply check the boxes of the languages you wish"
  34.       " to have available on your system.\n\n"
  35.       @askoptions-help
  36. ))
  37.  
  38. ;=============================================================================
  39. ; Make sure we are running under a 2.04 ROM
  40.  
  41. (if (< (/ (getversion) 65536) 37)
  42. (
  43.     (abort #bad-kick)
  44. ))
  45.  
  46. ;=============================================================================
  47.  
  48. ;*** Required libraries
  49.  
  50. (copylib
  51.     (prompt #copying-reqtools)
  52.     (help @copylib-help)
  53.     (source "Libs/reqtools.library")
  54.     (dest "LIBS:")
  55.     (confirm)
  56. )
  57.  
  58. ;*** Leagues executable
  59.  
  60. (set programdir
  61.     (tackon
  62.         (askdir
  63.             (prompt  #select-dest)
  64.             (help @askdir-help)
  65.             (default "SYS:")
  66.             (newpath)
  67.         )
  68.         "Leagues"
  69.     )
  70. )
  71.  
  72. (makedir programdir
  73.     (infos)
  74. )
  75.  
  76. (set @default-dest programdir)
  77.  
  78. (copyfiles
  79.     (prompt #copying-leagues)
  80.     (source "Leagues")
  81.     (dest programdir)
  82.     (infos)
  83. )
  84.  
  85. ;*** Copy Catalogs to Leagues dir for backup
  86.  
  87. (copyfiles
  88.     (prompt #copying-catalogs)
  89.     (source "")
  90.     (dest programdir)
  91.     (pattern "Catalogs#?")
  92. )
  93.  
  94. ;*** Copy registration files
  95.  
  96. (copyfiles
  97.     (prompt #copying-regfiles)
  98.     (source "")
  99.     (dest programdir)
  100.     (pattern "Registration#?")
  101. )
  102.  
  103. ;*** Documentation files
  104.  
  105. ; Backup
  106.  
  107. (copyfiles
  108.     (prompt #copying-documentation)
  109.     (source "")
  110.     (dest programdir)
  111.     (pattern "Documentation#?")
  112. )
  113.  
  114. ; Ask if documentation should be installed elsewhere
  115.  
  116. (set tempdocdir
  117.     (tackon
  118.         programdir
  119.         "Documentation"
  120.     )
  121. )
  122.  
  123. (set docdir
  124.     (askdir
  125.         (prompt #select-destguide)
  126.         (help @askdir-help)
  127.         (default tempdocdir)
  128.         (newpath)
  129.     )
  130. )
  131.  
  132. (copyfiles
  133.     (prompt #copying-documentation)
  134.     (source "Documentation/Leagues.guide")
  135.     (dest docdir)
  136.     (infos)
  137. )
  138.